package cn.liangcaomei.educms.service;

import cn.liangcaomei.educms.entity.CrmBanner;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 首页banner表 服务类
 * </p>
 *
 * @author LiuJie
 * @since 2024-02-04
 */
public interface CrmBannerService extends IService<CrmBanner> {

    //1 分页查询
    Page<CrmBanner> fetchAllBanner(long page, long limit);

    //2 添加Banner
    boolean addBanner(CrmBanner crmBanner);

    //3 修改Banner
    boolean updateBanner(String id, CrmBanner crmBanner);

    //4 删除Banner
    boolean deleteBanner(String id);

    //Front-1 查询所有的Banner
    List<CrmBanner> seleteAllBanner();
}
